package cn.school.common.utils;

import java.util.Random;

public class CommonUtil {
    private static String range = "0123456789abcdefghijklmndfddopqrstuvwxyz";
    /**
     * 获取随机数字符串
     *
     * @return
     */
    public static String getRandomString() {
        Random random = new Random();
        StringBuffer result = new StringBuffer();
        // 要生成几位，就把这里的数字改成几
        for (int i = 0; i < 25; i++) {
            result.append(range.charAt(random.nextInt(range.length())));
        }
        return result.toString();
    }


}
